// pages/index/index.js
import nami from '../../nami/index';

var app = getApp();

Page({

  /**
   * 页面的初始数据
   */
  data: {
    height: null
  },

  onLoad: function () {
    var that = this;
    wx.getSystemInfo({
      success: function(res) {
        console.log(res.windowHeight);
        that.setData({
          height: res.windowHeight - 150
        });
      }
    });
  },

  tapName: function (event) {
    console.log(event);
    wx.navigateTo({
      url: '/pages/edit/edit?item=' + event.currentTarget.id
    });
  }

})